package com.zhang.webadmin.util;

import com.zhang.webadmin.pojo.AclUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class CurrentLoginUserUtil {

    public static AclUser curr() {
        AclUser aclUser = (AclUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        return aclUser;
    }
}
